/*
 * Message.h
 *
 *  Created on: 2012-12-18
 *      Author: yangentao@gmail.com
 */

#pragma once;
#include "String.h"

namespace yet {
//DONT extend the Message class!
class Message {
public:
	Message();
	Message(int msg);
	Message(int msg, int argN);
	Message(int msg, String argS);
	Message(int msg, int argN, String argS);
	Message(const Message& other);
public:
	bool isQuit();
	bool equals(const Message& other) const;
private:
	void init(int msg, int argN, String argS, void* argP = 0, bool quit = false);
public:
	int msg;
	int argN;
	void* argP;
	String argS;
	bool quit;
};

}
